<template>
    <a class="tk_scroll_view" :title="title" href="/kc/detail10979.html" target="_blank">
            <div class="scroll_top">

                <img class="scroll_top_bg"
                    :src="path"
                    :alt="title">
            </div>
            <div class="scroll_name">{{title}}</div>
            <div class="scroll_time">
                <span class="time">{{videoCount}}课时</span>
                <div class="lec">
                    <span>{{userName}}</span>
                </div>
            </div>
            <div class="scroll_bot">
                <span class="scroll_people">{{people}}人已学</span>

                <div class="scroll_number">
                    ¥<span>{{coursePrice}}</span>
                </div>

            </div>
        </a>
</template>

<script>
export default {
    name: 'cuorseCard',
    props: {
        title:String,
        imagePath:String,
        videoCount:Number,
        userName:String,
        people:Number,
        coursePrice:Number
    },
    data(){
        return{
            path:"./logo/logo.png"
        }
    }
}
</script>

<style scoped>
.tk_scroll_box .scroll_flex {
    display: flex;
}
.tk_scroll_box .scroll_item {
    display: none;
    flex-wrap: wrap;
}
* {
    margin: 0;
    padding: 0;
}
body, input, select, button, textarea {
    font-size: 14px;
    font-family: 微软雅黑, "microsoft yahei", Arial, Helvetica, sans-serif;
}
body {
    line-height: 1;
    color: #333333;
    font-size: 14px;
}
.tk_scroll_box .tk_scroll_view {
    margin-right: 32px;
    margin-top: 30px;
}
.tk_scroll_view {
    position: relative;
    display: block;
    width: 275px;
    height: 300px;
    background-color: #FFFFFF;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 20px 0 rgb(0 0 0 / 4%);
}
a, a:link {
    text-decoration: none;
    color: #666666;
}
* {
    margin: 0;
    padding: 0;
}
a:-webkit-any-link {
    color: -webkit-link;
    cursor: pointer;
    text-decoration: underline;
}
.tk_scroll_view .scroll_top {
    position: relative;
    width: 100%;
    height: 155px;
    display: flex;
    align-items: center;
}
.tk_scroll_view .scroll_name {
    display: block;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 18px;
    color: #333333;
}
.tk_scroll_view .scroll_time {
    margin-top: 15px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #999999;
}
.tk_scroll_view .scroll_bot {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #999999;
    box-sizing: border-box;
}
.tk_scroll_view .scroll_top_bg {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.tk_scroll_view .scroll_time .time {
    font-size: 14px;
    color: #999999;
    height: 16px;
    padding-right: 10px;
    line-height: 16px;
    border-right: 1px solid #DCDCDC;
}

.tk_scroll_view .scroll_time .lec {
    display: flex;
    align-items: center;
    margin-left: 10px;
    font-size: 14px;
    color: #999999;
}

.tk_scroll_view .scroll_time .lec {
    display: flex;
    align-items: center;
    margin-left: 10px;
    font-size: 14px;
    color: #999999;
}

.tk_scroll_view .scroll_people {
    display: block;
    font-size: 14px;
    color: #999999;
}

.tk_scroll_view .scroll_number {
    display: block;
    font-size: 18px;
    color: #FF6600;
    font-weight: bold;
}

.tk_scroll_view .scroll_number {
    display: block;
    font-size: 18px;
    color: #FF6600;
    font-weight: bold;
}
</style>